package com.dldata.devtools30.controller.zhibiao;

import com.dldata.devtools30.entity.DevtZbclassInfoEntity;
import com.dldata.devtools30.entity.DevtZbobjInfoEntity;
import com.dldata.devtools30.repository.zhibiao.DevtZbcfgInfoEntityDao;
import com.dldata.devtools30.repository.zhibiao.DevtZbclassInfoEntityDao;
import com.dldata.devtools30.repository.zhibiao.DevtZbobjInfoEntityDao;
import com.dldata.devtools30.utils.StringUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.UUID;

@Controller
@RequestMapping(value = "/V_DevtZbIndexController")
public class V_DevtZbIndexController {
    private Logger logger = LoggerFactory.getLogger(this.getClass());
    
    @Autowired
    DevtZbclassInfoEntityDao zbclassInfoEntityDao;
    
    @Autowired
    DevtZbcfgInfoEntityDao devtZbcfgInfoEntityDao;
    
    @RequestMapping("toIndex")
    public String toIndex(Model model){
        List<DevtZbclassInfoEntity> zbclassInfoEntityList = zbclassInfoEntityDao.getAllErji();
        model.addAttribute("zbclassList",zbclassInfoEntityList);
    
    
        Integer entityDaoMaxXh = devtZbcfgInfoEntityDao.getMaxXh();
        return "thymeleaf/devtools30/zhibiao/v_zhibiaoIndex";
    }

}
